from django.db import models
from apps.common.base.models import BaseModel
from apps.system.lessee.models import Lessee
from apps.user.models import UserModel

class Teacher(BaseModel):
    gender = (
        ("M", "男"),
        ("W", "女"),
    )
    types = (
        ("1", "校本师资"),
        ("2", "企业专家"),
        ("3", "银龄专家"),
        ("4", "行业名师"),
        ("5", "兼职教师"),
    )
    checkStatus = (
        ("PASS", "通过"),
        ("REFUSE", "拒绝"),
        ("CHECKING", "审核中"),
    )
    user = models.ForeignKey(UserModel, related_name="user_teacher", verbose_name='用户', on_delete=models.SET_NULL, null=True, blank=True, db_constraint=False)
    types = models.CharField("类别", max_length=200, choices=types, blank=True, default='')
    avatarUrl = models.CharField("头像", max_length=200, blank=True, null=True, default='')
    realname = models.CharField("姓名", max_length=200, blank=True, null=True, default='')
    gender = models.CharField("性别", max_length=200, choices=gender, blank=True, default='')
    id_card = models.CharField("身份证号", max_length=200, blank=True, null=True, default='')
    phone = models.CharField("电话", max_length=200, blank=True, null=True, default='')
    school_name = models.CharField("学校", max_length=200, blank=True, null=True, default='')
    dept_name = models.CharField("系部", max_length=200, blank=True, null=True, default='')
    jobTitle = models.CharField("职称", max_length=200, blank=True, null=True, default='')
    education = models.CharField("学历", max_length=200, blank=True, null=True, default='')
    # 教学与培训经历
    keyCourse = models.CharField("主讲课程", max_length=200, blank=True, null=True, default='')
    trainingexperience = models.CharField("培训经历", max_length=200, blank=True, null=True, default='')
    style = models.CharField("培训风格", max_length=200, blank=True, null=True, default='')
    # 专业技能信息
    specialize = models.CharField("擅长专业领域", max_length=200, blank=True, null=True, default='')
    projectexperience = models.CharField("项目经历", max_length=200, blank=True, null=True, default='')
    scientificpayoffs = models.CharField("科研成果", max_length=200, blank=True, null=True, default='')
    patentedinvention = models.CharField("专利发明", max_length=200, blank=True, null=True, default='')
    # 职业资格与荣誉
    vocationalcertificate = models.CharField("职业证书", max_length=200, blank=True, null=True, default='')
    professionalglory = models.CharField("职业荣誉", max_length=200, blank=True, null=True, default='')

    checkStatus = models.CharField("审核状态", max_length=100, choices=checkStatus, blank=True, default='CHECKING')
    remark = models.CharField("备注", max_length=200, blank=True, null=True, default='')

    class Meta:
        verbose_name = 'Teacher'
        verbose_name_plural = verbose_name
